//登录接口需要携带的参数
export interface loginForm {
  username: string
  password: string
}
//登录接口返回的数据类型
export interface loginResponseForm {
  code: Number
  data: dataType
}

interface dataType {
  token?: string
  message?: string
}

//定义服务器返回用户信息相关类型
export interface userResponseForm {
  code: Number
  data: user
}

interface user {
  checkUser: userInfo
}

interface userInfo {
  userId: Number
  avatar: string
  username: string
  password: string
  desc: string
}
